package br.edu.ufcg.lsd.wbis.ui.client.ui.loggedin.admin.leftmenu.user;
//package br.edu.ufcg.lsd.wbis.ui.client.ui.loggedin.admin.menu.user;
//
//import br.edu.ufcg.lsd.wbis.ui.client.ui.loggedin.admin.allusers.AllUsersTab;
//import br.edu.ufcg.lsd.wbis.ui.client.ui.management.UserInfoManager;
//
//import com.gwtext.client.core.EventObject;
//import com.gwtext.client.data.Node;
//import com.gwtext.client.widgets.Component;
//import com.gwtext.client.widgets.TabPanel;
//import com.gwtext.client.widgets.tree.event.TreeNodeListenerAdapter;
//
///**
// * @author Renato Miceli
// */
//public class AllUsersNodeListener extends TreeNodeListenerAdapter {
//
//	private final TabPanel centerPanel;
//
//	private final UserInfoManager infoManager;
//
//	public AllUsersNodeListener(TabPanel centerPanel, UserInfoManager infoManager) {
//		this.centerPanel = centerPanel;
//		this.infoManager = infoManager;
//	}
//
//	/**
//	 * {@inheritDoc}
//	 */
//	@Override
//	public void onClick(Node node, EventObject e) {
//		for (Component c : this.centerPanel.getItems()) {
//			if (c.getItemId().equals(AllUsersTab.ITEM_ID)) {
//				this.centerPanel.activate(c.getId());
//				return;
//			}
//		}
//		AllUsersTab allUsersTab = new AllUsersTab(centerPanel, infoManager);
//		this.centerPanel.add(allUsersTab);
//		this.centerPanel.activate(allUsersTab.getId());
//	}
//
//}
